package com.mive.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @author Allen
 * @version 1.0.0
 * @createTime 2018-06-08 15:02
 * @description 欢迎页
 */
@Controller
@RequestMapping("/index.do")
public class IndexController {

    @RequestMapping(value = "hello")
    public String sayHello(ModelMap map){
        map.addAttribute( "welcome","welcom to the world of springboot!" );
        return "index";
    }
}
